/*
 * Filename BaseEvent.java 2022年01月12日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.core.api.dto.check;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author wyc
 * @since 2022/01/12 11:05
 **/
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class BaseMsgDTO<T> {
    private Integer type;
    private String title;
    private LocalDateTime publishTime;
    private String receivePackageId;
    private String pubAuthor;
    private T data;

    public BaseMsgDTO(Integer type, String title, LocalDateTime publishTime, String receivePackageId, String pubAuthor) {
        this.type = type;
        this.title = title;
        this.publishTime = publishTime;
        this.receivePackageId = receivePackageId;
        this.pubAuthor = pubAuthor;
    }
}